<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<ui:composition>
   <p:dialog id="modalDialog" visible="true" resizable="false" styleClass="modalPanelAlert"
      rendered="#{userSessionBean.hataVarmi}" widgetVar="dlg" header="Hata Ekranı" modal="true" closable="true" width="400">
      <div> 
         <div style="float: left; padding-top:15px;">
            <h:graphicImage width="50" height="50" value="#{applicationBean.themeImagePath}alert.png" />
         </div> 
         <div style="float: left; padding-top: 3px; text-align: center; width: 310px;">
            <p:messages id="messages" for="messages" style="margin:0;" />
         </div>
      </div>
   </p:dialog>

   <script>
  /* <![CDATA[ */
   function isMessagesExist()
   {
      if(jQuery('#bodyForm\\:messages').css('display') != "none")
      {
         if(jQuery("#bodyForm\\:messages").html()!= null)
         {
            if(jQuery("#bodyForm\\:messages").html()!= "")
            {
               return true;
            }
         }
      }
      return false;
   }
  	/* ]]> */
   </script>

</ui:composition>
</html>